﻿using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
using System.Data;
using System.Text;

namespace IHISCETeim.Web.MachineSys.FTradeModel
{
    public partial class FTradeCatheringLastChonZhi : PageBase
    {
        protected override string DWZRef
        {
            get
            {
                return "FTradeCatheringListEasyUI";
            }
        }

        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }

        protected int FCatheringId
        {
            get
            {

                return GetRequestValue<int>("FCatheringId", 0);
            }
        }

        private FTradeCatheringInfo _objFx = null;

        protected FTradeCatheringInfo obj
        {
            get
            {
                if (_objFx == null)
                    _objFx = FTradeCatheringController.GetById(FCatheringId);
                return _objFx;
            }
        }

        public DataTableCollection dtS = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            //string sqlwhere = string.Format(" FCatheringId={0} ", FCatheringId);
            dtS = FTradeCatheringController.GetLastChonZhi(FCatheringId);
            this.rpView.DataSource = dtS[0];
            this.rpView.DataBind();

            //

            rpDetailView.DataSource = FTradeCatheringController.GetAdjustingMoneyList(FCatheringId);
            rpDetailView.DataBind();
        }
    }
}